package com.guragura.util;

import com.badlogic.gdx.InputProcessor;
import com.badlogic.gdx.graphics.Camera;
import com.badlogic.gdx.graphics.OrthographicCamera;
import com.badlogic.gdx.scenes.scene2d.Stage;
import com.guragura.screens.GuraScreen;

/**
 * @author hartono
 * Kelas khusus untuk {@link GuraScreen} sebagai pemroses input dari user
 * menangani {@link Camera} dan {@link Stage} dari kelas {@link GuraScreen}
 */
public class GuraScreenInputListener implements InputProcessor{

	public OrthographicCamera camera;
	public Stage stage;
	
	public GuraScreenInputListener(OrthographicCamera camera, Stage stage) {
		// TODO Auto-generated constructor stub
		this.camera = camera;
		this.stage = stage;
	}
	
	@Override
	public boolean keyDown(int arg0) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean keyTyped(char arg0) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean keyUp(int arg0) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean scrolled(int arg0) {
		// TODO Auto-generated method stub
		return false;
	}

	public boolean touchDown(int arg0, int arg1, int arg2, int arg3) {
		// TODO Auto-generated method stub						
		return stage.touchDown(arg0, arg1, arg2, arg3);
	}

	@Override
	public boolean touchDragged(int arg0, int arg1, int arg2) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean touchMoved(int arg0, int arg1) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean touchUp(int arg0, int arg1, int arg2, int arg3) {
		// TODO Auto-generated method stub
		return stage.touchUp(arg0, arg1, arg2, arg3);
	}

}
